<#include "../../select.ftl" />
<#include "../../ajaxPage.ftl" />
<div class="modal-dialog wide" style="width: 500px;">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
            <h4 class="modal-title" id="myModalLabel">精进表明细</h4>
        </div>
        <div class="modal-body">
            <!-- row -->
            <div class="row">
                <div class="col-md-12">
                    <section class="tile">
                        <!-- tile body -->
                        <div class="tile-body">
                            <div id="showMessage"><#include "../../message.ftl" /></div>
                            <div class="form-horizontal">
                                <form id="search_xcJjbmx_table"
                                      action="${absoluteContextPath}/xc/xcJjbmx/ajaxSelectList"
                                      method="post">
                                    <input type="hidden" name="pageSize" value="${xcJjbmxsTable.page.pageSize}"/>
                                    <input type="hidden" name="currentPage" value="${xcJjbmxsTable.page.currentPage}"/>

                                    <div class="row">

                                        <div class="col-sm-7" style='display:none;'>
                                            <input class="form-control" name="jjbId"
                                                   value="${xcJjbmxParams.jjbId!''}" placeholder=""
                                                   type="text">
                                        </div>

                                        <div class="form-group col-md-6">
                                            <label class="col-sm-5 control-label" for="exampleInputEmail2">姓名</label>

                                            <div class="col-sm-7">
                                                <input class="form-control" name="userName"
                                                       value="${xcJjbmxParams.userName!''}" placeholder=""
                                                       type="text">
                                            </div>
                                        </div>

                                        <div class="form-group col-md-6">
                                            <div class="col-sm-12">
                                                <button type="button" class="btn btn-primary"
                                                        onclick="refreshSelectTable(1)">
                                                    查询
                                                </button>
                                                <button type="reset" class="btn btn-default">重置</button>
                                            </div>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </section>
                    <section class="tile">
                        <div class="tile-body nopadding">
                            <div class="table-responsive" id="selectContent">
                            <#include "selectTable.ftl"/>
                            </div>
                        </div>
                    </section>
                </div>
            </div>
        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal" aria-hidden="true">取消</button>
            <#--<button id="confirm" type="button" class="btn btn-primary">确定</button>-->
        </div>
    </div>
</div>
<script type="text/javascript">

    function refreshSelectTable(currentPage) {
        if (currentPage) {
            $("input[name=currentPage]").val(currentPage);
        }
        $("#search_xcJjbmx_table").ajaxSubmit({
            url: '${absoluteContextPath}/xc/xcJjbmx/ajaxSelectList',
            beforeSend: showLoading,
            success: function (data) {
                var data = JSON.parse(data);
                if (data.returnCode == 1) {
                    $("#selectContent").html(data.content.data);
                } else {
                    $.showMessage({parentId: "showMessage", message: "表格数据加载异常！", type: "success"});
                }
            }
        });
    }


</script>